package scsc.web.xzgl.saniarea.data;

import java.io.Serializable;

import scsc.pub.data.SanitationArea;

public class SaniAreaData extends SanitationArea implements Serializable {

	/**
	 * Program by cb 2006/03/23
	 */
	private static final long serialVersionUID = 1L;

	public SaniAreaData() {
		init();
	}

	public SaniAreaData(Integer areaId, String areaName, String areaRange,
			String userId, String latestDate, String remark) {
		setAreaId(areaId);
		setAreaName(areaName.trim());
		setAreaRange(areaRange.trim());
		setUserId(userId.trim());
		setLatestDate(latestDate.trim().substring(0, 10));
		setRemark(remark.trim());

	}

	public void reset() {
		init();
	}

	public void init() {
		setAreaId(null);
		setAreaName("");
		setAreaRange("");
		setUserId("");
		setLatestDate("");
		setRemark("");
	}

}
